package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.jsonResult.JsonResult;
import cn.tedu.charging.common.pojo.jsonResult.param.GunStatusUpdateParam;
import cn.tedu.charging.common.pojo.jsonResult.vo.StationInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 访问设备服务的接口
 */
@FeignClient("deviceService")
public interface DeviceClient {
    @GetMapping("/device/station/info/{gunId}")
     JsonResult<StationInfoVO> getStationInfo(@PathVariable Integer gunId);

    @PostMapping("/device/station/gun/status/update")
     JsonResult<Boolean> updateGunStatus(@RequestBody GunStatusUpdateParam param);
}
